# Contributor: lonjil <alpine@lonjil.xyz>
# Maintainer: lonjil <alpine@lonjil.xyz>
pkgname=qalculate-gtk
# the pkgver must be kept in sync with: libqalculate
pkgver=5.0.0
pkgrel=0
pkgdesc="Multi-purpose desktop calculator - GTK+ version"
url="https://qalculate.github.io/"
license="GPL-2.0-or-later"
arch="all"
makedepends="
	glib-dev
	gtk+3.0-dev
	intltool
	libqalculate-dev=~${pkgver%.*}
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/Qalculate/qalculate-gtk/releases/download/v$pkgver/qalculate-gtk-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	export CXXFLAGS="$CXXFLAGS -flto=auto"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
69fb158c50c3bdfe7e72f9c4ee6412575ccde43a64a3a1f4760d9c12337d0f8f54cb91636dc95e94133178f0b10efd7a065bf683797e22b683a78a3c40c78c59  qalculate-gtk-5.0.0.tar.gz
"
